Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext

RE: Sample Makefile for DSAPI Filter on Linux
~Lex Prelutexflar 3.Dec.03 10:18 AM a Web browser
Domino Server 6.0.2 CF2 Linux - RedHat


Rahul,
There isn't a make file for the DSAPI example, but the example for misc\extpwd may be very close to what you need.
Ian

#
# makefile for Notes API sample program extunix
# Linux RedHat
#
#

# set TARGET to the name of the executable to create
TARGET = libextpsw.so

# set SOURCES to the list of C source files in this program
SOURCES = extunix.c

# set HEADERS to the list of C include files in this program
HEADERS =

# set OBJECTS to the list of object files that must be linked
OBJECTS = extunix.o

# CC defines the compiler.
CC = egcs++

# Set CCOPTS - the compiler options.
CCOPTS = -c -m486
# You may use -g flag for debugging:
#CCOPTS = -c -m486 -g

# set NOTESDIR to specify where to search for the Notes library file
NOTESDIR = $(Notes_ExecDirectory)

# Set LINKOPTS - the linker options passed to CC when linking.
# -o $(TARGET) causes compiler to create target rather than a.out
LINKOPTS = -o $(TARGET) -shared -fpic -Wl,-R$(NOTESDIR),-znodefs,-ztext


# Notes API header files require UNIX to be defined.
DEFINES = -DUNIX -DLINUX -DHANDLE_IS_32BITS

# set INCDIR to specify where to search for include files
INCDIR = $(LOTUS)/notesapi/include

# set LIBS to list all the libraries ld should link with.
LIBS = -lnotes -lm -lnsl -lpthread -lc -lresolv -ldl

# the executable depends on the objects.
$(TARGET): $(OBJECTS)
$(CC) $(LINKOPTS) $(OBJECTS) -L$(NOTESDIR) $(LIBS)

# the object files depend on the corresponding source files
.c.o:
$(CC) $(CCOPTS) $(DEFINES) -I$(INCDIR) $(SOURCES)

clean :
rm -rf libextpsw.so extunix.o




Sample Makefile for DSAPI Filter on... (~Olga Minfreete... 2.Dec.03)
. . RE: Sample Makefile for DSAPI Filte... (~Lex Prelutexfl... 3.Dec.03)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS